
from Controller.AboutController import AboutController
from Controller.ChangePasswordController import ChangePasswordController
from Controller.CreateCampaignController import CreateCampaignController
from Controller.CreateClientController import CreateClientController
from Controller.CreateCompanyController import CreateCompanyController
from Controller.CreateGroupController import CreateGroupController
from Controller.CreateHITController import CreateHITController
from Controller.CreateUserController import CreateUserController
from Controller.Demo2Controller import Demo2Controller
from Controller.DemoController import DemoController
from Controller.GetAccountBalanceTestController import \
    GetAccountBalanceTestController
from Controller.GetCampaignController import GetCampaignController
from Controller.GetHITPropertiesTemplateController import \
    GetHITPropertiesTemplateController
from Controller.GetQuestionTemplateController import GetQuestionTemplateController
from Controller.HelpController import HelpController
from Controller.HomeController import HomeController
from Controller.LogInController import LogInController
from Controller.LogOutController import LogOutController
from Controller.ManageProfileController import ManageProfileController
from Controller.UploadCsvController import UploadCsvController
from Controller.PreviewHITController import PreviewHITController
from Controller.ShowQuestionController import ShowQuestionController
from Controller.CreateHitPropertiesTemplateController import CreateHitPropertiesTemplateController
from Controller.ForbiddenController import ForbiddenController
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

application = webapp.WSGIApplication(
                                     [('/', HomeController),
                                      ('/login', LogInController),
                                      ('/logout', LogOutController),
                                      ('/demo', DemoController),
                                      ('/demo2', Demo2Controller),
                                      ('/manage/profile', ManageProfileController),
                                      ('/m/p', ManageProfileController),
                                      ('/change/password', ChangePasswordController),
                                      ('/c/p', ChangePasswordController),
                                      ('/create/user', CreateUserController),
                                      ('/c/u', CreateUserController),
                                      ('/create/company', CreateCompanyController),
                                      ('/c/c', CreateCompanyController),
                                      ('/create/group', CreateGroupController),
                                      ('/c/g', CreateGroupController),
                                      ('/create/client', CreateClientController),
                                      ('/create/campaign', CreateCampaignController),
                                      ('/create/hit', CreateHITController),
                                      ('/c/h', CreateHITController),
                                      ('/get/campaign', GetCampaignController),
                                      ('/create/hittemplate', CreateHitPropertiesTemplateController),
                                      ('/get/hpt', GetHITPropertiesTemplateController),
                                      ('/get/hqt', GetQuestionTemplateController),
                                      ('/get/balance', GetAccountBalanceTestController),
                                      ('/uploadcsv', UploadCsvController),
                                      ('/preview/hit', PreviewHITController),
                                      ('/show/hit', ShowQuestionController),
                                      ('/s/q', ShowQuestionController),
                                      ('/help', HelpController),
                                      ('/h', HelpController),
                                      ('/a', AboutController),
                                      ('/about', AboutController),
                                      ('/403', ForbiddenController)],
                                     debug=True)

def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()